package com.example.kx002;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.FrameLayout;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //添加布局 xml控制ui
        setContentView(R.layout.activity_main);
        //java控制ui
        FrameLayout frameLayout = new FrameLayout(this);

        TextView textView = new TextView(this);

        textView.setText("开始游戏");

        textView.setTextSize(20);






    }
}